<template>
	<view>
      <categoryDisplay :message = "message"></categoryDisplay>
	</view>
</template>

<script>
  import category from "../../components/categoryDisplay/categoryDisplay.vue"
	export default {
    components:{
      category
    },
		data() {
			return {
        claid:'',
        message:[]
			}
		},
    onLoad(option) {
      this.claid=option.claid,
      this.select()
      console.log(this.claid)
    },
		methods: {
      select(){
        uni.request({
        	url:'http://z7jxxt5.nat.ipyingshe.com/select/message',
        	method:'POST',
        	data:{
            claid:this.claid
        	},
        	success:(res)=>{
            console.log("hello")
            console.log(res)
            this.message = res.data.message
        	},
        })
      }
		}
	}
</script>

<style>

</style>
